.page-calendar {
    display: flex;
    flex-direction: column;
    .calendar-head {
        flex-shrink: 0;
        display: flex;
        align-items: flex-start;
        margin: 32px 32px 16px;
        border-bottom: 1px solid #F4F4F5;
        .calendar-titbox {
            flex: 1;
            display: flex;
            align-items: center;
            margin-bottom: 16px;
            .calendar-title {
                display: flex;
                align-items: center;
                margin-right: 36px;
                > h1 {
                    color: #333333;
                    font-size: 28px;
                    font-weight: 600;
                }
            }
            .calendar-arrow {
                margin-right: 12px;
                > button {
                    color: #888888;
                    font-size: 12px;
                    &:focus {
                        box-shadow: none;
                    }
                }
            }
            .calendar-view {
                flex: 1;
                display: flex;
                justify-content: flex-end;
                > button {
                    &:focus {
                        box-shadow: none;
                    }
                }
            }
        }
    }
    .calendar-box {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 0 48px 6px;
        overflow: hidden;
        .calendar-wrapper {
            flex: 1;
            position: relative;
            &:before {
                content: "";
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                height: 2px;
                background-color: #ffffff;
                z-index: 1;
            }
            .tui-full-calendar-popup {
                box-shadow: none;
                .tui-full-calendar-section-header {
                    .tui-full-calendar-ic-checkbox-checked {
                        background-image: url();
                    }
                }
                .tui-full-calendar-popup-container {
                    border: 0;
                    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
                    border-radius: 6px;
                }
                .tui-full-calendar-arrow-top .tui-full-calendar-popup-arrow-border {
                    top: -8px;
                    border-bottom-color: rgba(217, 217, 217, .5);
                }
            }
            .tui-full-calendar-dropdown-menu {
                border-color: #e8e8e8;
                width: calc(100% - 14px);
            }
            .tui-full-calendar-popup-creation {
                .tui-full-calendar-icon {
                    &.tui-full-calendar-ic-title,
                    &.tui-full-calendar-calendar-dot {
                        display: none;
                    }
                    &.tui-full-calendar-ic-date {
                        background-image: url("");
                        background-size: contain;
                    }
                }
                .tui-full-calendar-content {
                    padding-left: 0;
                }
                .tui-full-calendar-popup-section {
                    display: flex;
                    justify-content: space-between;
                    margin-bottom: 10px;
                    .tui-full-calendar-popup-section-item {
                        height: 36px;
                        line-height: 34px;
                        border-color: #e8e8e8;
                        border-radius: 4px;
                    }
                    .tui-full-calendar-popup-section-item input {
                        height: 34px;
                    }
                }
                .tui-full-calendar-section-title {
                    width: 100%;
                    input {
                        width: 100%;
                    }
                }
                .tui-full-calendar-section-start-date,
                .tui-full-calendar-section-end-date {
                    width: 210px;
                    .tui-full-calendar-content {
                        padding-left: 8px;
                    }
                }
                .tui-full-calendar-popup-location,
                .tui-full-calendar-section-private,
                .tui-full-calendar-section-allday,
                .tui-full-calendar-section-state {
                    display: none;
                }
            }
            .tui-full-calendar-popup-task {
                .priority {
                    color: #ffffff;
                    padding: 2px 4px;
                    border-radius: 4px;
                    margin-right: 6px;
                }
                .overdue {
                    color: #f5222d;
                    background: #fff1f0;
                    border: 1px solid #ffa39e;
                    padding: 1px 3px;
                    border-radius: 4px;
                    margin-right: 6px;
                }
                .tui-full-calendar-calendar-dot,
                .tui-full-calendar-ic-priority {
                    opacity: 0;
                }
                .tui-full-calendar-ic-edit {
                    top: -2px;
                    background-image: url("");
                }
                .tui-full-calendar-ic-delete {
                    top: -2px;
                    background-image: url("");
                }
                .tui-full-calendar-popup-detail-item-separate {
                    padding-left: 22px;
                }
            }
            .tui-datepicker {
                border-color: #e8e8e8;
                .tui-calendar {
                    th,
                    td {
                        height: 32px;
                    }
                    .tui-calendar-prev-month.tui-calendar-date,
                    .tui-calendar-next-month.tui-calendar-date {
                        visibility: visible;
                    }
                }
                .tui-datepicker-body .tui-timepicker,
                .tui-datepicker-footer .tui-timepicker {
                    padding: 16px 46px 16px 47px;
                }
            }
        }
    }
    .calendar-menu {
        position: absolute;
        top: 2px;
        right: 2px;
        z-index: -1;
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .page-calendar {
        .calendar-head {
            .calendar-titbox {
                .calendar-title {
                    flex: 1;
                }
                .calendar-arrow {
                    margin-left: 12px;
                    margin-right: 0;
                }
                .calendar-view {
                    display: none;
                }
            }
        }
        .calendar-box {
            padding: 0 24px 5px;
        }
    }
}
